package 慕课网.homework2;

public class Car {
    private String brand;
    private String color;
    private int whell=2;
    private int set;
    public Car(){

    }
    public Car(String brand,String color,int whell,int set){
        this.setBrand(brand);
        this.setColor(color);
        this.setWhell(whell);
        this.setSet(set);
    }
    public int getWhell() {
        return whell;
    }
    public void setWhell(int whell) {
        this.whell = whell;
    }
    public int getSet() {
        return set;
    }
    public void setSet(int set) {
        this.set = set;
    }
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getBrand() {
        return brand;
    }
    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String describle(){
        String str="父类信息测试："+"这是一辆"+this.getColor()+"的，"+this.getBrand()+"的非机动车，有"+this.getWhell()+"个轮子，有"+this.getSet()+"座椅";
        return str;
    }
}
